package com.hoshiicloud.stock.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 库存单据类型修改参数实体
 *
 * @author : yangcheng
 * @date : 2019/5/18 18:04
 * @mail : maiboyc@163.com
 **/
@ApiModel
@Data
public class WarehouseTypeUpdateParam {

    // ID
    @NotNull(message = "ID不能为空")
    @ApiModelProperty(name = "id", value = "ID", dataType = "java.lang.Long", example = "3171776001692664001")
    private Long id;

    /**
     * 类别代码
     */
    @ApiModelProperty(name = "code", value = "类别代码", dataType = "java.lang.String", example = "WT001")
    @NotNull(message = "类别代码不能为空")
    private String code;
    /**
     * 类别名称
     */
    @ApiModelProperty(name = "name", value = "类别名称", dataType = "java.lang.String", example = "租户内部仓")
    @NotNull(message = "类别名称不能为空")
    private String name;

    /**
     * 是否多仓库
     */
    @ApiModelProperty(name = "flag", value = "是否多仓库 1 是 0 否", dataType = "java.lang.String", example = "0")
    @NotNull(message = "是否多仓库不能为空")
    private Integer flag;

}